package project.game.cards;

/**
 * Klass CardCreator, loob objektid Card()
 * @author Martin,Uku
 *
 */
public class CardCreator {

	private AllCards allCards = new AllCards();

	/**
	 * Loome uued Card() objektid, ning lisame need pakki(allGameCards)
	 */
	public void createCards() {
		for (Suits s : Suits.values()) {
			for (CardTypes ct : CardTypes.values()) {
				Card card = new Card(s, ct);
				allCards.addToAllGameCards(card);
			}
		}
	}

	public String getStringOfAllCards() {
		return allCards.cardsToString();
	}

	public AllCards getAllCards() {
		return allCards;
	}

}
